package com.easyaccount.model;

public class Traffic {
    private Integer id;

    private Integer billId;

    private Integer category;

    private String typeName;

    private Double amount;

    private String origin;

    private String destination;

    private String starttime;

    private String arrivetime;

    private Integer counts = 1;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBillId() {
        return billId;
    }

    public void setBillId(Integer billId) {
        this.billId = billId;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName == null ? null : typeName.trim();
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin == null ? null : origin.trim();
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination == null ? null : destination.trim();
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime == null ? null : starttime.trim();
    }

    public String getArrivetime() {
        return arrivetime;
    }

    public void setArrivetime(String arrivetime) {
        this.arrivetime = arrivetime == null ? null : arrivetime.trim();
    }

    public Integer getCounts() {
        return counts;
    }

    public void setCounts(Integer counts) {
        this.counts = counts;
    }

    @Override
    public String toString() {
        return "Traffic{" +
                "id=" + id +
                ", billId=" + billId +
                ", category=" + category +
                ", typeName='" + typeName + '\'' +
                ", amount=" + amount +
                ", origin='" + origin + '\'' +
                ", destination='" + destination + '\'' +
                ", starttime='" + starttime + '\'' +
                ", arrivetime='" + arrivetime + '\'' +
                ", counts=" + counts +
                '}';
    }
}